package com.template.domain.vo;

import com.template.domain.entity.SysUser;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

public class SysUserVo {

    /**
     * 用户登录时获取的信息
     */
    @Getter
    @Setter
    @Accessors(chain = true)
    public static class Login extends SysUser {
        /**
         * 用户权限
         */
        private List<String> perms;
    }

    @Getter
    @Setter
    public static class WithCreateUser extends SysUser {
        private String createUsername;
    }
}
